Skip to content

No-Jira - /doctor ran on mpdx-react codebase - #1946

Merged
zweatshirt merged 2 commits into
mainfrom
dr-claude
Jul 27, 2026
Merged

No-Jira - /doctor ran on mpdx-react codebase#1946
zweatshirt merged 2 commits into
mainfrom
dr-claude

Conversation

@zweatshirt

@zweatshirt zweatshirt commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Description

  • First commit bc1a534 results from the /doctor command. According to Claude, the code-review.md file was being pulled into every session, even if the review agent was never called.
  • The second commit 8817ca9 involves some discoveries I made, where the referenced MUI version needed to be updated. The copilot agent file was also removed, since it is unused and bloat at this point.

Note: It is actually possible that removing the code-review.md as a reference file for every context may decrease code quality during development. Claude /doctor's recommendation was based on the high token count it causes.

Testing

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels (Add the label "Preview" to automatically create a preview environment)
  • I have run the Claude Code /quality:agent-review command locally and fixed any relevant suggestions
  • I have requested a review from another person on the project
  • I have tested my changes in preview or in staging
  • I have cleaned up my commit history

@zweatshirt zweatshirt self-assigned this Jul 27, 2026
@zweatshirt
zweatshirt marked this pull request as ready for review July 27, 2026 17:15
@github-actions

Copy link
Copy Markdown
Contributor

Bundle sizes [mpdx-react]

Compared against 2099b77

No significant changes found

@zweatshirt zweatshirt left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Multi-Agent Code Review — Verdict: ✅ CLEAN

Risk: 4/10 (MEDIUM) · Blockers: 0 · Mode: standard · 4 agents (Security, Standards, Architecture, Testing)

Docs/config-only PR (3 files). No blockers, no important or medium findings.

What was checked

  • .claude/rules/code-review.md (Critical File Pattern — AI review-process definition): the added paths frontmatter provably does not weaken the review. /quality:agent-review reads this file directly by path (Stage 0B), independent of ambient context loading, and no risk score, severity threshold, agent trigger, critical check, or excluded path in the body was changed. The self-referencing glob fails safe (closed), never open.
  • Version labels: @mui/material is ^7.3.11, so the old "Material UI v5" was stale. All three references corrected to v7; git grep "Material UI v5" now returns zero hits. ✅ Factually correct.
  • .github/copilot-instructions.md deletion: safe — nothing in the repo references it (no workflow/CI/README), and its guidance is duplicated in CLAUDE.md / .claude/rules/code-review.md.
  • CLAUDE.md trims: only derivable content removed (Development Commands, Key Technologies, Directory Structure — all reconstructable from package.json / ls). Authentication & Environment and all conventions retained; no security guidance lost.

Suggestions (informational — severity < 5, do not block)

  • [Suggestion] severity 2.0 — .github/copilot-instructions.md (deleted): one directive had no equivalent elsewhere — "Always write the least amount of code possible. Avoid using unnecessary styles, variables, and test providers." Everything else it contained is already in CLAUDE.md/code-review.md. If you want that minimalism directive to survive for Claude, consider folding it into CLAUDE.md's Code Standards section. Optional.

Advisory (non-scored)

  • paths frontmatter is a novel pattern in this repo — harmless and self-documented by its inline comment. If more .claude/rules/*.md files adopt it later, consider documenting the self-referencing-glob idiom once.
Agent Critical High Important Suggestions Confidence
Security 0 0 0 0 High
Standards 0 0 0 1 High
Architecture 0 0 0 2 High
Testing 0 0 0 0 High
Total 0 0 0 3 High

@zweatshirt
zweatshirt requested review from canac and wjames111 and removed request for wjames111 July 27, 2026 17:29

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Review Auto-Approval

Risk Level: MEDIUM (4/10)
Verdict: CLEAN (no issues found)

This PR was auto-approved because:

  • The multi-agent AI review determined it is medium risk
  • No blocking issues were found

If you believe this PR needs human review, dismiss this approval and request a review manually.

@canac canac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: If Claude doesn't read this file on startup anymore, it make make more of these mistakes in its first iteration of code. But we should be able to trust the code review to fix them. I know it's a context optimization tradeoff, but I'm in-favor of this change! Especially since Claude explicitly recommends it.

@zweatshirt
zweatshirt merged commit 0a0f7c3 into main Jul 27, 2026
23 checks passed
@zweatshirt
zweatshirt deleted the dr-claude branch July 27, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants